# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=kpeoplevcard
pkgver=0.1
pkgrel=2
pkgdesc='Makes it possible to expose vcards to KPeople'
url='https://kde.org/'
license=(GPL)
arch=(loong64 x86_64)
depends=(kpeople5 kcontacts5)
makedepends=(extra-cmake-modules)
source=(https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('8de5df5a3abeed2b13fc56f33d1846ae5b90adfc2127bc1b0ffa5e300b7663c3'
            'SKIP')
validpgpkeys=(F53223F3337665C2CCEA122E873AC3459BBCF5C0) # Nicolas Fella <nicolas.fella@kdab.com>

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
